// 取消token校验
const tokenVerify = (url, key) => {
    // 管理端
    if (key === "ums"){
        const arr = [
            "/ums/login",
            "/ums/code"
        ]
        return arr.some(item => item === url)
    }
    // 客户端
    if (key === "sms") {
        const arr = [
            "/sms/user/login",
            "/sms/user/register",
            "/sms/home/carousel",
            "/sms/home/category",
            "/sms/home/recommend",
            "/sms/product/list"
        ]
        return arr.some(item => item === url)
    }
}

module.exports = tokenVerify